<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>评论列表</title>
    <script src="../js/react.js"></script>
    <script src="../js/JSXTransformer.js"></script>
    <script src="../js/react-dom.js"></script>
    <script src="../js/browser.min.js"></script>
</head>
<body>
<div id="example"></div>
<script type="text/jsx">
var Comment=React.createClass({
    render: function () {
        return(
            <div>
                <h2>{this.props.author}</h2>
                {this.props.childern}
            </div>
        );
    }
});
    var CommenntList =React.createClass({
        render: function () {
            <div>
                <Comment author="John">this is one comment</Comment>
                <Comment author="Susan">this is *another* comment</comment>
            </div>
        }
    });
    ReactDOM.render(
          /*  <CommenntList></CommenntList>,*/
            <Comment></Comment>,
            document.getElementById('example')
    );
</script>
</body>
</html>